package com.ruoyi.mapper;

import com.ruoyi.domain.BasisGroundEnvironment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 阵地环境Mapper接口
 * 
 * @author wangzebing
 * @date 2025-05-11
 */
public interface BasisGroundEnvironmentMapper 
{
    /**
     * 查询阵地环境
     * 
     * @param id 阵地环境主键
     * @return 阵地环境
     */
    public BasisGroundEnvironment selectBasisGroundEnvironmentById(Long id);

    /**
     * 查询阵地环境列表
     * 
     * @param basisGroundEnvironment 阵地环境
     * @return 阵地环境集合
     */
    public List<BasisGroundEnvironment> selectBasisGroundEnvironmentList(BasisGroundEnvironment basisGroundEnvironment);


    public List<BasisGroundEnvironment> findAllBasisGroundEnvironmentList(BasisGroundEnvironment basisGroundEnvironment);


    /**
     * 新增阵地环境
     * 
     * @param basisGroundEnvironment 阵地环境
     * @return 结果
     */
    public int insertBasisGroundEnvironment(BasisGroundEnvironment basisGroundEnvironment);

    /**
     * 修改阵地环境
     * 
     * @param basisGroundEnvironment 阵地环境
     * @return 结果
     */
    public int updateBasisGroundEnvironment(BasisGroundEnvironment basisGroundEnvironment);

    /**
     * 删除阵地环境
     * 
     * @param id 阵地环境主键
     * @return 结果
     */
    public int deleteBasisGroundEnvironmentById(Long id);

    /**
     * 批量删除阵地环境
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBasisGroundEnvironmentByIds(Long[] ids);

    //通过案例id和阵营id查询 阵地
    public List<BasisGroundEnvironment> findByLoadingIdAndCampId(@Param("loadingId") String loadingId,@Param("campId") String campId);

    //添加阵地和阵营和案例的关联表
    boolean addBasisLoadingGroundEnvironmentCamp(BasisGroundEnvironment basisGroundEnvironment);
}
